package com.beamfield.dao.sys;

import com.beamfield.model.NormalOperator;
import com.beamfield.model.NormalOperatorExample;
import java.util.List;

import com.beamfield.model.SpecialOperator;
import com.beamfield.modelVo.ManagerTrainVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
public interface NormalOperatorMapper {
    int deleteByPrimaryKey(Long normal_operator_id);

    int insert(NormalOperator record);

    int insertSelective(NormalOperator record);

    List<NormalOperator> selectByExample(NormalOperatorExample example);

    NormalOperator selectByPrimaryKey(Long normal_operator_id);

    int updateByPrimaryKeySelective(NormalOperator record);

    int updateByPrimaryKey(NormalOperator record);

	Integer selectCountByExample(NormalOperatorExample example);

	List<ManagerTrainVo> getDetailNormalOperatorList(
			@Param("offset")Integer offset, 
			@Param("limit")Integer limit, 
			@Param("normal_operator_id")Long normal_operator_id);

	Integer getDetailNormalOperatorCount(@Param("normal_operator_id")Long normal_operator_id);

	Integer checkCountNormalOperatorIDCard(
			@Param("identity")String identity, 
			@Param("normal_operator_id")Long normal_operator_id);

	Integer getNormalOperatorCount();

	NormalOperator selectByCodeAndBeamId(@Param("beam_id") Long beamId, @Param("ecode") String ecode);

	Integer getCountByBeamId(@Param("beamId") Long beamId);
}